//
//  Common.swift
//  sinaweibo
//
//  Created by lst on 16/5/19.
//  Copyright © 2016年 lst. All rights reserved.
//

import UIKit

//在同一个命名空间下 所有的文件默认贡献
//屏幕的宽和高
let ScreenWidth = UIScreen.mainScreen().bounds.width
let ScreenHeight = UIScreen.mainScreen().bounds.height


//用户登录授权配置信息
let client_id = "2372535638"
let client_secret = "36f1a34dd101ce9bcc35f52115dc7de0"
let redirect_uri = "http://www.itheima.com"

//定义通知的名称
let SwitchRootViewController = "SwitchRootViewController"
//定义通用错误信息
let AppErrorTip = "网络君正在睡觉,请稍后再试"
//设置时间
let sharedDF = NSDateFormatter()

func randomColor() -> UIColor {
    let red = CGFloat(random() % 256) / 255.0
    let blue = CGFloat(random() % 256) / 255.0
    let green = CGFloat(random() % 256) / 255.0
    
    return UIColor(red: red, green: green, blue: blue, alpha: 1)
}